package com.atguigu.yygh.cmn.client;

import com.atguigu.yygh.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
public interface DictFeignClient {




    //根据dictcode和value查询
    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable ("dictCode")String  dictCode,
                          @PathVariable ("value")String value);


    //更具value查询
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public  String  getName(@PathVariable("value") String value);


}
